Arrangement for capturing data

ABSTRACT

An arrangement for capturing data from a data stream of a predetermined data transfer rate by means of a flip-flop, comprises a symmetrical multi-phase clock generator that is adapted to be locked to a reference clock which in turn is adapted to generate a reference clock signal at the data transfer rate or at a fraction thereof, the multi-phase clock generator being adapted to generate n clock signals mutually shifted in phase 360°/n from each other, and a selector that is connected to the clock generator to receive the n clock signals, the selector being adapted to select one of these n clock signals as the system clock signal in response to a control signal from a clock phase counter, the clock phase counter being controlled to count up or down in response to the phase of the system clock signal when a predetermined number of data transitions have occurred in the data stream, said flip-flop being adapted to be controlled by the opposite phase of the system clock signal to capture said data from the data stream.

TECHNICAL FIELD

[0001] The invention relates generally to data reception and more specifically to the capture and resynchronization of data from a high-speed data stream.

BACKGROUND OF THE INVENTION

[0002] Today, i.a. the below techniques are used to capture data from a data stream.

[0003] Clock Recovery Using a Phase-Locked Loop Steered by the Data.

[0004] The disadvantage of this technique is that it depends on that data transitions occur at regular intervals. To guarantee this in an arbitrary data stream, extra coding bits must be added which reduces the bandwidth of the real information that can be transmitted in the data stream.

[0005] Multiple Sampling of the Data Signal as it Passes through a Delay Line.

[0006] The disadvantage of this technique is that the realization circuitry is complex.

[0007] Transmission of Matched Clock and Data Signals.

[0008] The disadvantage of this technique is that it places heavy demands on making both the clock path and the data path identical as well as on the transmission medium except when the transmission distances are very short.

[0009] The known techniques are unsuited for use in connection with high-speed data streams.

SUMMARY OF THE INVENTION

[0010] The object of the invention is to bring about an arrangement that is suitable for use in connection with high-speed data streams.

[0011] This is attained by means of the arrangement according to the invention for capturing data from a data stream of a predetermined data transfer rate, comprising a first flip-flop that is adapted to receive the data stream on its data input and a system clock signal on its clock input for clocking captured data to its output, a symmetrical multiphase clock generator that is adapted to be locked to a reference clock which in turn is adapted to generate a reference clock signal at the data transfer rate or at a fraction thereof, the multiphase clock generator being adapted to generate n clock signals mutually shifted in phase 360°/n from each other, a selector that is connected with its input to the multiphase clock generator to receive the n clock signals, the selector being adapted to select, in response to a control signal, one of these n clock signals to be the system clock signal to be supplied to the clock input of the first flip-flop, a dual edge triggered second flip-flop that is connected with its data input to the clock input of the first flip-flop and with its clock input to the data input of the first flip-flop to sample the selected system clock signal by means of the incoming data stream on every data transition thereof to generate on its output a retard clock signal that is high if the selected system clock signal is high when sampled and that is low if the selected system clock signal is low when sampled, a divider that is connected with its input to the data input of the first flip-flop and that is adapted to generate a counter clock signal on its output every time a predetermined number of data transitions has occurred in the data stream, and a clock phase counter that is connected with its input to the output of the dual edge triggered second flip-flop, with its clock input to the output of the divider, and with its output to the selector to control the selector to select another one of said n clock signals to be the system clock signal in response to the retard clock signal being high or low.

[0012] Preferably, said counter clock signal is generated every time at least two data transitions has occurred in the data stream.

[0013] The arrangement according to the invention synchronizes a clock system to a high-speed input data stream and can be used e.g. when high-speed synchronous data is to be sent between two circuits.

BRIEF DESCRIPTION OF THE DRAWING

[0014] The invention will be described more in detail below with reference to the appended drawing on which FIG. 1 is a block diagram of an embodiment of an arrangement according to the invention, and FIGS. 2a-f are pulse diagrams showing the arrangement in FIG. 1 going into lock mode from various conditions.

DESCRIPTION OF THE INVENTION

[0015] In the embodiment illustrated in FIG. 1, a stream of data D to be captured is received on an input connected to the data input of a flip-flop I2. The data stream at the input is shown in FIG. 2a. The incoming data D is illustrated to have a ‘1010 . . . ’ pattern in this embodiment as apparent from FIG. 2a.

[0016] Below, the description of the embodiment in FIG. 1 is divided into three sections, namely multi-phase clock generation, system clock adjustment, and clock demultiplexer control.

[0017] Multi-Phase Clock Generation

[0018] To capture the incoming data by means of the flip-flop I2, a reference clock C is provided to generate clock pulses either at the data transfer rate, i.e. the pulse rate of the incoming data D, or at a sub-multiple thereof.

[0019] The reference clock C is connected to a symmetrical multi-phase clock generator that in the embodiment in FIG. 1 is comprised of a voltage controlled ring oscillator (VCRO) I3 with seven stages. Generally, the VCRO 13 can have any number n of stages. The number of stages is chosen to give a suitable resolution.

[0020] The VCRO I3 is designed to generate pulses at a pulse rate corresponding to the pulse rate of the incoming data through being adjusted by the reference clock C as described below.

[0021] The stages of the VCRO I3 consist of identical voltage controlled delay elements. Each delay element in the VCRO I3 is tapped, whereby seven different clock phases are provided, each subsequent phase shifted from the previous phase by 360°/7.

[0022] If the pulse rate of the reference clock C is a sub-multiple of the required clock rate, then a divider 16 is interconnected in the feedback loop from the VCRO I3 to the phase detector I5 to get the correct pulse rate for the VCRO I3 in the conventional manner.

[0023] A phase comparator I5 and a filter I4 are interconnected between the clock C and the VCRO I3 to lock the pulse rate of the VCRO I3 to the pulse rate of the reference clock C or to a multiple thereof in the conventional manner.

[0024] The taps of the VCRO I3 are connected to a phase selector in the form of a clock demultiplexer I7 in FIG. 1 that is adapted to pick one of these seven phases to be the system clock signal SC shown in FIGS. 2b and 2 d.

[0025] Any phase delays in the generation of the system clock pulses SC to this point are not important to the system performance. The only requirement is that the system clock can generate pulses at the required pulse rate.

[0026] System Clock Adjustment

[0027] In accordance with the invention, the system clock signal SC in FIG. 2b or 2 d is controlled such that its negative transition occurs on a data transition. The positive transition of the system clock pulse is used to clock the data into the data flip-flop I2. This gives maximum set-up and hold times for the data flip-flop I2 within the resolution of the VCRO I3.

[0028] A dual edge triggered flip-flop I1 is provided to sample the system clock signal SC in FIG. 2b or 2 d on each transition of the incoming data D.

[0029] Depending if the system clock signal SC is high or low when a data transition occurs, a retard clock signal RC shown in FIGS. 2c and 2 e as outputted by the flip-flop I1 becomes high (system clock signal is high) or low (system clock signal is low) when a data transition occurs.

[0030] In the embodiment in FIG. 1, a divider I9 is provided to generate a counter clock signal CC on every third data transition as shown in FIG. 2f. This signal CC is used to clock a phase counter I8 that in this embodiment is a modulo 7 up/down counter.

[0031] Every third data transition is used in order to allow the clock loop to settle before it is subsequently adjusted. The third transition is unimportant, the number could be two or higher. However using an odd number allows any mismatch between odd and even data transitions to be averaged out.

[0032] Thus, in the embodiment in FIG. 1, the up/down counter I8 counts up or down on every third data transition, depending if the retard clock signal RC is high (count down) or low (count up).

[0033] The output signal of the up/down counter I8 controls the clock demultiplexer I7 as described later.

[0034] The incoming data D is continuously sampled by the data flip-flop I2 on the positive transition of the system clock signal SC.

[0035] The captured data CD (not shown) that is outputted by the flip-flop I2 is now synchronized to the system clock and is ready for use in the rest of the system.

[0036] The final “locked” position of the arrangement in FIG. 1 is that the negative transition of the system clock signal SC comes just before or just after a data transition. Within the resolution of the VCRO I3, this will give maximum set-up and hold times for the data flip-flop I2.

[0037] The arrangement according to the invention can be used to synchronize a clock system to a high-speed input data stream. It can be used when high-speed synchronous data is to be sent between two circuits. The speed of the data channel and the delay in the transmission medium make it impractical to use conventional synchronous techniques.

[0038] A reference clock pulse rate, which is the same as the data transfer rate or is a sub-multiple thereof, must be available at both the transmitter and the receiver.

[0039] The performance of this circuit depends only on the matching of the set-up and hold characteristics between the two flip-flops I1 and I2. This matching can be very well controlled. All other delays in the system are unimportant providing they meet the pulse rate requirement. The system locks after only a few data bits have been sent and thereafter does not depend on the content of the data being sent or on a particular data pattern to remain in lock. The system remains in lock even when no data is sent providing the transmitter and receiver clocks remain the same.

[0040] Clock Demultiplexer Control

[0041] For the sake of simplicity, the data D in FIG. 2a is shown to have a transition every cycle. If this is not the case, the counter clock signal cycle is extended and no modification takes place to the system clock signal SC until three data transitions have occurred.

[0042]FIGS. 2b and 2 c, illustrating the system clock signal SC and the retard clock signal RC, respectively, show what takes place when the system is trying to synchronize.

[0043] In this case, the system clock signal SC is too advanced. Consequently, the retard clock signal RC is high and on the positive edge of the counter clock signal CC, the clock phase counter I8 counts down. In its turn, the clock demultiplexer I7 is controlled to choose an earlier clock phase from the VCRO I3.

[0044] This is illustrated by the shortened system clock pulse denoted A in FIG. 2b.

[0045] The same thing happens at the next positive edge of the counter clock signal CC and the clock phase counter I8 again counts down.

[0046] When the system clock phase eventually becomes too retarded with respect to the incoming data, the retard clock signal RC goes low and the clock phase counter I8 counts up as illustrated by the lengthened system clock pulse denoted B in FIG. 2d.

[0047]FIGS. 2d and 2 e, illustrating the system clock signal SC and the retard clock signal RC, respectively, show what takes place when the system is in synchronization. The change of state of the clock phase counter I8 alternatively increases and reduces the system clock pulse length as indicated by a pulses B and A, respectively. 

What is claimed is:
 1. An arrangement for capturing data from a data stream of a predetermined data transfer rate, comprising a first flip-flop that is adapted to receive the data stream on its data input and a system clock signal on its clock input for clocking captured data to its output, a symmetrical multiphase clock generator that is adapted to be locked to a reference clock which in turn is adapted to generate a reference clock signal at the data transfer rate or at a fraction thereof, the multiphase clock generator being adapted to generate n clock signals mutually shifted in phase 360°/n from each other, and a selector that is connected with its input to the multiphase clock generator to receive the n clock signals, the selector being adapted to select, in response to a control signal, one of these n clock signals to be the system clock signal to be supplied to the clock input of the first flip-flop, wherein a dual edge triggered second flip-flop is connected with its data input to the clock input of the first flip-flop and with its clock input to the data input of the first flip-flop to sample the selected system clock signal by means of the incoming data stream on every data transition thereof to generate on its output a retard clock signal that is high if the selected system clock signal is high when sampled and that is low if the selected system clock signal is low when sampled, a divider is connected with its input to the data input of the first flip-flop and is adapted to generate a counter clock signal on its output every time a predetermined number of data transitions has occurred in the data stream, and a clock phase counter is connected with its input to the output of the dual edge triggered second flip-flop, with its clock input to the output of the divider, and with its output to the selector to control the selector to select another one of said n clock signals to be the system clock signal in response to the retard clock signal being high or low.
 2. The arrangement according to claim 1, characterized in that said predetermined number is ≧2. 